using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

using Net.Fan.SmallPig.DataAccess;
using Net.Fan.SmallPig.BusinessRules;
using Net.Fan.SmallPig.Common.DBMeta;
using Net.Fan.SmallPig.Common;

public partial class ascx_StatusResolution1 : System.Web.UI.UserControl
{
    private long bugNo;

    public long BugNo
    {
        //get { return this.bugNo; }
        set { this.bugNo = value; }
    }

    protected void Page_Load(object sender, EventArgs e)
    {
        if (this.IsPostBack == false)
        {
            //DataTable dt = BugBiz.GetActions(bugNo, Page.User.Identity.Name);
            //CreatLink(dt);
        }
    }

    private void CreatLink(DataTable dt)
    {
        foreach (DataRow dr in dt.Rows)
        {
            HyperLink li = new HyperLink();
            li.Text = dr[WorkflowMeta.Operate] as string;
            li.NavigateUrl = string.Format("../BMS/SetStatusResolution.aspx?B={0}&WID={1}", bugNo, dr[WorkflowMeta.WorkflowID]);
            li.CssClass = "btn";
            this.Controls.Add(li);
            Label lable = new Label();
            lable.Text = " | ";
            this.Controls.Add(lable);
        }
    }


}
